CC = gcc
CXX = g++
CFLAGS = -O2 -Wall -pipe -fPIC

CFLAGS += -I/usr/local/dao/include
LIBS = -L/usr/local/lib -ldao

CFLAGS += -I/usr/local/include/bullet
LIBS = -L/usr/local/lib -lBulletDynamics -lBulletCollision -lLinearMath

MYNAME= bullet

OBJS= main.o\
    btDbvtBroadphase.o\
    btCollisionConfiguration.o\
    btDefaultCollisionConfiguration.o\
    btDispatcher.o\
    btCollisionDispatcher.o\
    btConstraintSolver.o\
    btSequentialImpulseConstraintSolver.o\
    btDiscreteDynamicsWorld.o\
    btVector3.o\
    btCollisionShape.o\
    btStaticPlaneShape.o\
    btSphereShape.o\
    btQuaternion.o\
    btTransform.o\
    btMotionState.o\
    btDefaultMotionState.o\
    btRigidBodyConstructionInfo.o\
    btRigidBody.o\
    btClock.o

T= $(MYNAME).so

all:	$T

.cpp.o:
	$(CXX) -c $(CFLAGS) $<     

.c.o:
	$(CC) -c $(CFLAGS) $<     

so:	$T

$T:	$(OBJS)
	$(CC) $(LIBS) -shared -o $@ $(OBJS)

clean:
	rm -f $(OBJS) $T core core.*

depend:
	makedepend -Y -I. *.cpp *.c
# DO NOT DELETE

btClock.o: btClock.h
btCollisionConfiguration.o: btCollisionConfiguration.h
btCollisionDispatcher.o: btDispatcher.h btCollisionDispatcher.h
btCollisionShape.o: btCollisionShape.h
btConstraintSolver.o: btConstraintSolver.h
btDbvtBroadphase.o: btDbvtBroadphase.h
btDefaultCollisionConfiguration.o: btCollisionConfiguration.h
btDefaultCollisionConfiguration.o: btDefaultCollisionConfiguration.h
btDefaultMotionState.o: btMotionState.h btDefaultMotionState.h
btDiscreteDynamicsWorld.o: btDiscreteDynamicsWorld.h
btDispatcher.o: btDispatcher.h
btMotionState.o: btMotionState.h btTransform.h
btQuaternion.o: btQuaternion.h
btRigidBodyConstructionInfo.o: btRigidBodyConstructionInfo.h
btRigidBody.o: btMotionState.h btRigidBody.h
btSequentialImpulseConstraintSolver.o: btConstraintSolver.h
btSequentialImpulseConstraintSolver.o: btSequentialImpulseConstraintSolver.h
btSphereShape.o: btCollisionShape.h btSphereShape.h
btStaticPlaneShape.o: btCollisionShape.h btStaticPlaneShape.h
btTransform.o: btTransform.h btVector3.h
btVector3.o: btVector3.h
main.o: btDbvtBroadphase.h btCollisionConfiguration.h
main.o: btDefaultCollisionConfiguration.h btDispatcher.h
main.o: btCollisionDispatcher.h btConstraintSolver.h
main.o: btSequentialImpulseConstraintSolver.h btDiscreteDynamicsWorld.h
main.o: btVector3.h btCollisionShape.h btStaticPlaneShape.h btSphereShape.h
main.o: btQuaternion.h btTransform.h btMotionState.h btDefaultMotionState.h
main.o: btRigidBodyConstructionInfo.h btRigidBody.h btClock.h
